<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<% 
    String path = request.getContextPath(); 
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<base href="<%=basePath%>"></base>
<title>例会管理主界面</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<link href="css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="js/select-ui.min.js"></script>
<script type="text/javascript" src="editor/kindeditor.js"></script>
<script type="text/javascript"> 
  
	//分页,跳转到第几页
	function goPage(pn) {
	  if (null != pn && pn != '') {
		 document.form2.action = "regularMeeting?pn="+pn;
	  }
	  var pageNum = $("#toPageNums").val();
	  if(null != pageNum && pageNum != ''){
		 document.form2.action="regularMeeting?pn="+pageNum;
	  }
	 document.form2.submit();
  }

</script>
<script type="text/javascript">
$(document).ready(function(){
  $(".click").click(function(){
  $(".tip").fadeIn(200);
  });
  
  $(".tiptop a").click(function(){
  $(".tip").fadeOut(200);
});

  $(".sure").click(function(){
  $(".tip").fadeOut(100);
});

  $(".cancel").click(function(){
  $(".tip").fadeOut(100);
});

});
</script>


</head>
<body>
  <div class="place">
    <span>位置：</span>
    <ul class="placeul">
    <li><a href="regularMeeting">例会管理</a></li>
    </ul>
    </div>
   
	<form action="regularMeeting" method="post" name="form2" enctype="multipart/form-data">
	<div class="formbody">
	    <ul class="seachform">
	    <li><label>客户经理编号</label><input name="mgrId" type="text" class="scinput" value="${RmgrId }"/></li>
	    <li><label>日期</label><input name="meetDate" type="text" class="scinput" value="${RmeetDate }"/></li> 
	    <%-- <li><label>日期</label><input name="meetDate" type="text" class="dfinput" value="<fmt:formatDate value="${RmeetDate }" pattern="yyyy-MM-dd"/>"/></li>  --%>
	    <li><label>主题</label><input name="theme" type="text" class="scinput" value="${Rtheme}"/></li>
	    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
	    </ul>
	</div>

    <div class="rightinfo">
	    <div class="tools">
	    	<ul class="toolbar1">
	        <li><a href="regularMeeting/regularMeetingAdd.jsp"><span><img src="images/t01.png" /></span>添加</a></li>
	        <li><a href="javascript:modifyRegularMeeting()"><span><img src="images/t02.png" /></span>修改</a></li>
	        <li><a href="javascript:confirmMsgDel()" ><span><img src="images/t03.png"/></span>删除</a></li>
	        </ul>
	    </div>
	    <table class="tablelist" id="regularMeetingTable">
	    	<thead>
		    	<tr class="tablehead"><td colspan="6">例会记录</td></tr>
		    	</thead>
		    	<thead>
		    	<tr>
		        <th>选择</th>
		        <th>客户经理</th>
		        <th>日期</th>
		        <th>主题</th>
		        <th>与会人员</th>
		        <th>附件</th>
		        </tr>
	        </thead>
	        <tbody>
	         <c:forEach items="${pageInfo.list }" var="meet">
		       <tr>
		       	<td><input name="regular_ids" type="checkbox" value="${meet.key }" data-id="${meet.key }"/></td>
		       	<td>${meet.mgrName }</td><!-- 客户经理名字 -->
		       	<td>${meet.meetDate }</td>
		       	<td>${meet.theme }</td>
		       	<td>${meet.parties }</td>
		     
		       	<td><a href="downLoadFile?fileName=${meet.attachment}" class="tablelink">${meet.attachment }</a></td>
		       </tr>
		      </c:forEach>
	        </tbody>
	    </table>
		   <div class="pagin">
	 		<table width="100%" border="0" cellspacing="0" cellpadding="0">
	          <tr>
	            <td class="STYLE4"><div class="message">共<i class="blue">${pageInfo.total}</i>条记录，当前显示第&nbsp;<i class="blue">${pageInfo.pageNum}&nbsp;</i>页
	            共<i class="blue">${pageInfo.pages}&nbsp;</i>页</div>
	           </td>
	            <td><table border="0" align="right" cellpadding="0" cellspacing="0">
	                <tr>
	                   <td width="45">
	                     <a href="<%=basePath %>regularMeeting.action?pn=1" >首页</a>
	                  </td> 
	                  <td width="50">
	                     <a href="<%=basePath %>regularMeeting.action?pn=${pageInfo.pageNum-1}">上一页</a>
	                  </td>
	                  <td width="50">
	                     <a href="<%=basePath %>regularMeeting.action?pn=${pageInfo.pageNum+1}">下一页</a>
	                  </td>
	                   <td width="50">
	                     <a href="<%=basePath %>regularMeeting.action?pn=${pageInfo.pages}">尾页</a>
	                  </td>
	                  <td width="100"><div align="center"><span class="STYLE1">转到第
	                    <input name="selectPage" id="toPageNums" type="text" size="4" style="height:16px; width:35px; border:1px solid #999999;" /> 
	                    页 </span></div></td>
	                  <td width="40">
	                  <img src="<%=basePath %>images/go.gif" width="33" height="17" style="cursor:hand" onclick="goPage('')"/>
	                  </td>
	                </tr>
	            </table>
	            </td>
	            </tr>    
	        </table>
			</div>
    </div>
	</form>
    
    <script type="text/javascript">
	$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</body>
</html>